package com.project.controller;

import com.project.entity.Order;
import com.project.service.OrderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "入库")
@RequestMapping("/order")
public class OrderController {
@Autowired
public OrderService orderService;
@PostMapping("addPreOrder")
    public String  addPreOrder( Order order){
        orderService.addPreOrder(order);
        return "ok";
    }
}
